import request from '@/utils/request'

// 查询物资申请列表
export function listWuzishenqing(query) {
  return request({
    url: '/system/wuzishenqing/list',
    method: 'get',
    params: query
  })
}

// 查询物资申请详细
export function getWuzishenqing(id) {
  return request({
    url: '/system/wuzishenqing/' + id,
    method: 'get'
  })
}

// 新增物资申请
export function addWuzishenqing(data) {
  return request({
    url: '/system/wuzishenqing',
    method: 'post',
    data: data
  })
}

// 修改物资申请
export function updateWuzishenqing(data) {
  return request({
    url: '/system/wuzishenqing',
    method: 'put',
    data: data
  })
}

// 删除物资申请
export function delWuzishenqing(id) {
  return request({
    url: '/system/wuzishenqing/' + id,
    method: 'delete'
  })
}
